package com.file.msg;

import lombok.AllArgsConstructor;
import lombok.Data;

public enum RequestMsg {
    SUCCESS_ADD_File("200","添加成功"),
    SUCCESS_DELETE_File("200","删除成功"),
    SUCCESS_Find_File("200","查询成功"),
    SUCCESS_CREATE_File("200","创建成功"),
    SUCCESS_CD_DIR("202","进入"),

    ERROR_HAVE_FILE_NAME("999","文件重名"),
    ERROR_EXSIST_DIR("998","文件夹已存在"),
    ERROR_NOT_EXSIST_DIR("997","文件不存在"),
    ERROR_NOT_EXSIST_File("997","文件不存在"),

    SYS_ALTER_ROOT_SUCCESS("0","root修改成功")
    ;

    private String code;
    private String msg;

    RequestMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
